package com.inforich.common.mybatis;

import com.alibaba.fastjson2.JSONObject;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @description: some desc
 * @author: HJM
 * @date: 2022/10/23
 */
public class Location {

  private String type;

  private Double[] coordinates;

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Double[] getCoordinates() {
    return coordinates;
  }

  public void setCoordinates(Double[] coordinates) {
    this.coordinates = coordinates;
  }

  public Location parse(String pointString) {
    return JSONObject.parseObject(pointString, Location.class);
  }

  @Override
  public String toString() {
    return JSONObject.toJSONString(this);
  }
}
